home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume19 / dmake / part20 < prev    next >
Encoding:
Text File  |  1991-05-11  |  40.4 KB  |  1,204 lines

  1. Newsgroups: comp.sources.misc
  2. From: Dennis Vadura <dvadura@watdragon.waterloo.edu>
  3. Subject:  v19i041:  dmake - dmake version 3.7, Part20/37
  4. Message-ID: <1991May12.002115.9491@sparky.IMD.Sterling.COM>
  5. X-Md4-Signature: 0e4bb607e1af7da290a9b4037c700dde
  6. Date: Sun, 12 May 1991 00:21:15 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: Dennis Vadura <dvadura@watdragon.waterloo.edu>
  10. Posting-number: Volume 19, Issue 41
  11. Archive-name: dmake/part20
  12. Supersedes: dmake-3.6: Volume 15, Issue 52-77
  13.  
  14. ---- Cut Here and feed the following to sh ----
  15. #!/bin/sh
  16. # this is dmake.shar.20 (part 20 of a multipart archive)
  17. # do not concatenate these parts, unpack them in order with /bin/sh
  18. # file dmake/man/dmake.tf continued
  19. #
  20. if test ! -r _shar_seq_.tmp; then
  21.     echo 'Please unpack part 1 first!'
  22.     exit 1
  23. fi
  24. (read Scheck
  25.  if test "$Scheck" != 20; then
  26.     echo Please unpack part "$Scheck" next!
  27.     exit 1
  28.  else
  29.     exit 0
  30.  fi
  31. ) < _shar_seq_.tmp || exit 1
  32. if test -f _shar_wnt_.tmp; then
  33. sed 's/^X//' << 'SHAR_EOF' >> 'dmake/man/dmake.tf' &&
  34. This macro gives the set of flags to pass to the shell when
  35. invoking it to execute a single line recipe.  The value of the macro is the
  36. list of flags with a leading switch indicator.  (ie. `-' under UNIX)
  37. .IP \fBSHELLMETAS\fP 1.6i
  38. Each time
  39. .B dmake
  40. executes a single recipe line (not a group recipe) the line is
  41. searched for any occurrence of a character defined in the value of SHELLMETAS.
  42. If such a character is found the recipe line is defined to require a shell
  43. to ensure its correct execution.  In such instances
  44. a shell is used to invoke the recipe line.
  45. If no match is found the recipe line is executed without the use of a shell.
  46. .sp
  47. .PP
  48. There is only one character valued macro defined by \fBdmake\fP:
  49. \fBSWITCHAR\fP contains the switch character used
  50. to introduce options on command lines.  For UNIX its value is '-', and for
  51. MSDOS its value may be '/' or '-'.
  52. The macro is internally defined and is not user setable.
  53. The MSDOS version of \fBdmake\fP attempts to first extract SWITCHAR from an
  54. environment variable of the same name.  If that fails it then attempts to
  55. use the undocumented getswitchar system call, and returns the result of
  56. that.  Under MSDOS version 4.0 you must set the value of the environment
  57. macro SWITCHAR to '/' to obtain predictable behavior.
  58. .PP
  59. All boolean macros currently understood by 
  60. .B dmake
  61. correspond directly to the previously defined attributes.
  62. These macros provide
  63. a second way to apply global attributes, and represent the
  64. preferred method of doing so.  They are used by assigning them a
  65. value.  If the value is not a NULL string then the boolean condition
  66. is set to on.
  67. If the value is a NULL string then the condition is set to off.
  68. There are five conditions defined and they correspond directly to the
  69. attributes of the same name.  Their meanings are defined in the ATTRIBUTES
  70. section above.
  71. The macros are:
  72. \&\fB.EPILOG\fP,
  73. \&\fB.IGNORE\fP,
  74. \&\fB.MKSARGS\fP,
  75. \&\fB.NOINFER\fP,
  76. \&\fB.PRECIOUS\fP,
  77. \&\fB.PROLOG\fP,
  78. \&\fB.SEQUENTIAL\fP,
  79. \&\fB.SILENT\fP,
  80. \&\fB.SWAP\fP, and
  81. \&\fB.USESHELL\fP.
  82. Assigning any of these a non NULL value will globally set
  83. the corresponding attribute to on.
  84. .SH "RUN_TIME MACROS"
  85. These macros are defined
  86. when \fBdmake\fP is making targets, and may take on different values for each
  87. target.  \fB$@\fP is defined to be the full target name, \fB$?\fP is the
  88. list of all out of date prerequisites, \fB$&\fP is the list of all
  89. prerequisites, \fB$>\fP is the name of the library if the current target is a
  90. library member, and
  91. \fB$<\fP is the list of prerequisites specified in the current rule.
  92. If the current target had a recipe inferred then \fB$<\fP is the name of the
  93. inferred prerequisite even if the target had a list of prerequisites supplied
  94. using an explicit rule that did not provide a recipe.  In such situations
  95. \fB$&\fP gives the full list of prerequisites.
  96. .PP
  97. \fB$*\fP is defined as
  98. \fB$(@:db)\fP when making targets with explicit recipes and is defined as the
  99. value of % when making targets whose recipe is the result of an inference.
  100. In the first case \fB$*\fP is the target name with no suffix,
  101. and in the second case, is the value of the matched % pattern from
  102. the associated %-rule.
  103. \fB$^\fP expands to the set of out of date prerequisites taken from the
  104. current value of \fB$<\fP.
  105. In addition to these,
  106. \fB$$\fP expands to $, \fB{{\fP expands to {, \fB}}\fP expands to }, and the
  107. strings \fB<+\fP and \fB+>\fP are recognized
  108. as respectively starting and terminating a text diversion when they appear
  109. literally together in the same input line.
  110. .PP
  111. The difference between $? and $^ can best be illustrated by an example,
  112. consider:
  113. .RS
  114. .sp
  115. .nf
  116. fred.out : joe amy hello
  117. \trules for making fred
  118. X
  119. fred.out : my.c your.h his.h her.h      # more prerequisites
  120. .fi
  121. .sp
  122. .RE
  123. Assume joe, amy, and my.c are newer then fred.out.  When
  124. .B dmake
  125. executes the recipe for making fred.out the values of the following macros
  126. will be:
  127. .RS
  128. .sp
  129. .nf
  130. .Is "$@ "
  131. .Ii "$@"
  132. --> fred.out
  133. .Ii "$*"
  134. --> fred
  135. .Ii "$?"
  136. --> joe amy my.c  # note the difference between $? and $^
  137. .Ii "$^"
  138. --> joe amy
  139. .Ii "$<"
  140. --> joe amy hello
  141. .Ii "$&"
  142. --> joe amy hello my.c your.h his.h her.h
  143. .fi
  144. .sp
  145. .RE
  146. .SH "FUNCTION MACROS"
  147. .B dmake
  148. supports a full set of functional macros.  One of these, the $(mktmp ...)
  149. macro, is discussed in detail in the TEXT DIVERSION section and is not
  150. covered here.
  151. .RS
  152. .sp
  153. .IP "$(\fBnull\fP,\fItext\fP \fBtrue\fP \fBfalse\fP)"
  154. expands the value of
  155. .I text.
  156. If it is NULL then the macro returns the value of the expansion of \fBtrue\fP
  157. and the expansion of \fBfalse\fP otherwise.  The terms \fBtrue\fP, and
  158. \fBfalse\fP must be strings containing no white\-space.
  159. .IP "$(\fB!null\fP,\fItext\fP \fBtrue\fP \fBfalse\fP)"
  160. Behaves identically to the previous macro except that the 
  161. .B true
  162. string is chosen if the expansion of
  163. .I text
  164. is not NULL.
  165. .IP "$(\fBeq\fP,\fItext_a\fP,\fItext_b\fP \fBtrue\fP \fBfalse\fP)"
  166. expands
  167. .I text_a
  168. and
  169. .I text_b
  170. and compares their results.  If equal it returns the result of the expansion
  171. of the 
  172. .B true
  173. term, otherwise it returns the expansion of the
  174. .B false
  175. term.
  176. .IP "$(\fB!eq\fP,\fItext_a\fP,\fItext_b\fP \fBtrue\fP \fBfalse\fP)"
  177. Behaves identically to the previous macro except that the 
  178. .B true
  179. string is chosen if the expansions of the two strings are not equal
  180. .IP "$(\fBshell\fP \fBcommand\fP)"
  181. Runs \fIcommand\fP as if it were part of a recipe and returns,
  182. separated by a single space, all the non-white
  183. space terms written to stdout by the command.
  184. For example:
  185. .RS
  186. .RS
  187. .sp
  188. $(shell ls *.c)
  189. .sp
  190. .RE
  191. will return \fI"a.c b.c c.c d.c"\fP if the files exist in the current
  192. directory.  The recipe modification flags \fB[+@%-]\fP are honored if they
  193. appear as the first characters in the command.  For example:
  194. .RS
  195. .sp
  196. $(shell +ls *.c)
  197. .sp
  198. .RE
  199. will run the command using the current shell.
  200. .RE
  201. .IP "$(\fBsort\fP \fBlist\fP)"
  202. Will take all white\-space separated tokens in \fIlist\fP and will
  203. return their sorted equivalent list.
  204. .IP "$(\fBstrip\fP \fBdata\fP)"
  205. Will replace all strings of white\-space in data by a single space.
  206. .IP "$(\fBsubst\fP,\fIpat\fP,\fIreplacement\fP \fBdata\fP)"
  207. Will search for \fIpat\fP in
  208. .B data
  209. and will replace any occurrence of
  210. .I pat
  211. with the
  212. .I replacement
  213. string.
  214. .RS
  215. The expansion
  216. .RS
  217. .sp
  218. $(subst,.o,.c $(OBJECTS))
  219. .sp
  220. .RE
  221. is equivalent to:
  222. .RS
  223. .sp
  224. $(OBJECTS:s/.o/.c/)
  225. .sp
  226. .RE
  227. .RE
  228. .SH "DYNAMIC PREREQUISITES"
  229. .B dmake
  230. looks for prerequisites whose names contain macro expansions during target
  231. processing.  Any such prerequisites are expanded and the result of the
  232. expansion is used as the prerequisite name.  As an example the line:
  233. .sp
  234. \tfred : $$@.c
  235. .sp
  236. causes the $$@ to be expanded when \fBdmake\fP is making fred, and it resolves
  237. to the target \fIfred\fP.
  238. This enables dynamic prerequisites to be generated.  The value
  239. of @ may be modified by any of the valid macro modifiers.  So you can say for
  240. example:
  241. .sp
  242. \tfred.out : $$(@:b).c
  243. .sp
  244. where the $$(@:b) expands to \fIfred\fP.
  245. Note the use of $$ instead of $ to indicate the dynamic expansion, this
  246. is due to the fact that the rule line is expanded when it is initially parsed,
  247. and $$ then returns $ which later triggers the dynamic prerequisite expansion.
  248. If you really want a $ to be part of a prerequisite name you must use $$$$.
  249. Dynamic macro expansion is performed in all user defined rules,
  250. and the special targets .SOURCE*, and .INCLUDEDIRS.
  251. .SH "BINDING TARGETS"
  252. This operation takes a target name and binds it to an existing file, if
  253. possible.
  254. .B dmake
  255. makes a distinction between the internal target name of a target and its
  256. associated external file name.
  257. Thus it is possible for a target's internal name and its external
  258. file name to differ.
  259. To perform the binding, the following set of rules is used.
  260. Assume that we are
  261. trying to bind a target whose name is of the form \fIX.suff\fP,
  262. where \fI.suff\fP is the suffix and \fIX\fP is the stem portion
  263. (ie. that part which contains the directory and the basename).
  264. .B dmake
  265. takes this target name and performs a series of search operations that try to
  266. find a suitably named file in the external file system.
  267. The search operation is user controlled
  268. via the settings of the various .SOURCE targets.
  269. .RS
  270. .IP 1.
  271. If target has the .SYMBOL attribute set then look for it in the library.
  272. If found, replace the target name with the library member name and continue
  273. with step 2.  If the name is not found then return.
  274. .IP 2.
  275. Extract the suffix portion (that following the `.') of the target name.
  276. If the suffix is not null, look up the special target .SOURCE.<suff>
  277. (<suff> is the suffix).  
  278. If the special target exists then search each directory given in
  279. the .SOURCE.<suff> prerequisite list for the target.
  280. If the target's suffix was null (ie. \fI.suff\fP was empty) then 
  281. perform the above search but use the special target .SOURCE.NULL instead.
  282. If at any point a match is found then terminate the search.
  283. If a directory in the prerequisite list is the special name `.NULL ' perform
  284. a search for the full target name without prepending any directory portion
  285. (ie. prepend the NULL directory).
  286. (a default target of '.SOURCE : .NULL' is defined by \fBdmake\fP at startup,
  287. and is user redefinable)
  288. .IP 3.
  289. The search in step 2. failed.  Repeat the same search but this time
  290. use the special target .SOURCE.
  291. .IP 4.
  292. The search in step 3. failed.
  293. If the target has the library member attribute (.LIBMEMBER)
  294. set then try to find the target in the library which was passed along
  295. with the .LIBMEMBER attribute (see the MAKING LIBRARIES section).
  296. The bound file name assigned to a target which is successfully
  297. located in a library is the same name that would be assigned had the search
  298. failed (see 5.).
  299. .IP 5.
  300. The search failed.  Either the target was not found in any of the search
  301. directories or no applicable .SOURCE special targets exist.
  302. If applicable .SOURCE special targets exist, but the target was not found,
  303. then \fBdmake\fP assigns the first name searched as the bound file name.
  304. If no applicable .SOURCE special targets exist,
  305. then the full original target name becomes the bound file name.
  306. .RE
  307. .PP
  308. There is potential here for a lot of search operations.  The trick is to
  309. define .SOURCE.x special targets with short search lists and leave .SOURCE
  310. as short as possible.
  311. The search algorithm has the following useful side effect.
  312. When a target having the .LIBMEMBER (library member) attribute is searched for,
  313. it is first searched for as an ordinary file.
  314. When a number of library members require updating it is desirable to compile
  315. all of them first and to update the library at the end in a single operation.
  316. If one of the members does not compile and \fBdmake\fP stops, then
  317. the user may fix the error and make again.  \fBdmake\fP will not remake any
  318. of the targets whose object files have already been generated as long as
  319. none of their prerequisite files have been modified as a result of the fix.
  320. .PP
  321. When defining .SOURCE and .SOURCE.x targets the construct
  322. .sp
  323. \t.SOURCE :
  324. .br
  325. \t.SOURCE : fred gery
  326. .sp
  327. is equivalent to
  328. .sp
  329. \t.SOURCE :- fred gery
  330. .PP
  331. \fBdmake\fP correctly handles the UNIX Make variable VPATH.  By definition VPATH
  332. contains a list of ':' separated directories to search when looking for a
  333. target.  \fBdmake\fP maps VPATH to the following special rule:
  334. .sp
  335. \t.SOURCE :^ $(VPATH:s/:/ /)
  336. .sp
  337. Which takes the value of VPATH and sets .SOURCE to the same set of directories
  338. as specified in VPATH.
  339. .SH "PERCENT(%) RULES AND MAKING INFERENCES"
  340. When \fBdmake\fP makes a target, the target's set of prerequisites (if any)
  341. must exist and the target must have a recipe which \fBdmake\fP
  342. can use to make it.
  343. If the makefile does not specify an explicit recipe for the target then
  344. .B dmake
  345. uses special rules to try to infer a recipe which it can use
  346. to make the target.  Previous versions of Make perform this task by using
  347. rules that are defined by targets of the form .<suffix>.<suffix> and by
  348. using the .SUFFIXES list of suffixes.  The exact workings of this mechanism
  349. were sometimes difficult to understand and often limiting in their usefulness.
  350. Instead, \fBdmake\fP supports the concept of \fI%-meta\fP rules.  
  351. The syntax and semantics of these rules differ from standard rule lines as
  352. follows:
  353. .sp
  354. .nf
  355. .RS
  356. \fI<%-target>\fP [\fI<attributes>\fP] \fI<ruleop>\fP [\fI<%-prerequisites>\fP] [;\fI<recipe>\fP]
  357. .RE
  358. .fi
  359. .sp
  360. where \fI%-target\fP is a target containing exactly a single `%' sign,
  361. .I attributes
  362. is a list (possibly empty) of attributes,
  363. .I ruleop
  364. is the standard set of rule operators,
  365. .I "%-prerequisites"
  366. \&, if present, is a list of prerequisites containing zero or more `%' signs,
  367. and
  368. .I recipe,
  369. if present, is the first line of the recipe.
  370. .PP
  371. The
  372. .I %-target
  373. defines a pattern against which a target whose recipe is
  374. being inferred gets matched.  The pattern match goes as follows:  all chars are
  375. matched exactly from left to right up to but not including the % sign in the
  376. pattern, % then matches the longest string from the actual target name
  377. not ending in
  378. the suffix given after the % sign in the pattern.
  379. Consider the following examples:
  380. .RS
  381. .sp
  382. .nf
  383. .Is "dir/%.c   "
  384. .Ii "%.c"
  385. matches fred.c but not joe.c.Z
  386. .Ii "dir/%.c"
  387. matches dir/fred.c but not dd/fred.c
  388. .Ii "fred/%"
  389. matches fred/joe.c but not f/joe.c
  390. .Ii "%"
  391. matches anything
  392. .fi
  393. .sp
  394. .RE
  395. In each case the part of the target name that matched the % sign is retained
  396. and is substituted for any % signs in the prerequisite list of the %-meta rule
  397. when the rule is selected during inference and
  398. .B dmake
  399. constructs the new dependency.
  400. As an example the following %-meta rules describe the following:
  401. .RS
  402. .sp
  403. %.c : %.y ; recipe...
  404. .sp
  405. .RE
  406. describes how to make any file ending in .c if a corresponding file ending
  407. in .y can be found.
  408. .RS
  409. .sp
  410. foo%.o : fee%.k ; recipe...
  411. .sp
  412. .RE
  413. is used to describe how to make fooxxxx.o from feexxxx.k.
  414. .RS
  415. .sp
  416. %.a :; recipe...
  417. .sp
  418. .RE
  419. describes how to make a file whose suffix is .a without inferring any
  420. prerequisites.
  421. .RS
  422. .sp
  423. %.c : %.y yaccsrc/%.y ; recipe...
  424. .sp
  425. .RE
  426. is a short form for the construct:
  427. .RS
  428. .sp
  429. %.c : %.y ; recipe...
  430. .br
  431. %.c : yaccsrc/%.y ; recipe...
  432. .sp
  433. .RE
  434. ie. It is possible to specify the same recipe for two %-rules by giving
  435. more than one prerequisite in the prerequisite list.
  436. A more interesting example is:
  437. .RS
  438. .sp
  439. % : RCS/%,v ; co $@
  440. .sp
  441. .RE
  442. which describes how to take any target and check it out of
  443. the RCS directory if the corresponding file exists in the RCS directory.
  444. The equivalent SCCS rule would be:
  445. .RS
  446. .sp
  447. % : s.% ; get $@
  448. .sp
  449. .RE
  450. .PP
  451. The previous RCS example defines an infinite rule, because it says how to make
  452. .I anything
  453. from RCS/%,v, and
  454. .I anything
  455. also includes RCS/fred.c,v.
  456. To limit the size of the graph that results from such rules
  457. .B dmake
  458. uses the macro variable PREP (stands for % repetition).  By default the value
  459. of this variable is 0, which says that no repetitions of a %-rule are to be
  460. generated.  If it is set to something greater than 0, then that many
  461. repetitions of any infinite %-rule are allowed.  If in the above
  462. example PREP was set to 1, then \fBdmake\fP would generate the dependency
  463. graph:
  464. .RS
  465. .sp
  466. % --> RCS/%,v --> RCS/RCS/%,v,v
  467. .sp
  468. .RE
  469. Where each link is assigned the same recipe as the first link.
  470. PREP should be used only in special cases, since it may result in
  471. a large increase in the number of possible prerequisites tested.
  472. .B dmake
  473. further assumes that any target that has no suffix can be made from
  474. a prerequisite that has at least one suffix.
  475. .PP
  476. .B dmake
  477. supports dynamic prerequisite generation for prerequisites of %-meta rules.
  478. This is best illustrated by an example.  The RCS rule shown above can infer
  479. how to check out a file from a corresponding RCS file only if the target
  480. is a simple file name with no directory information.  That is, the above rule
  481. can infer how to find \fIRCS/fred.c,v\fP from the target \fIfred.c\fP,
  482. but cannot infer how to find \fIsrcdir/RCS/fred.c,v\fP from \fIsrcdir/fred.c\fP
  483. because the above rule will cause \fBdmake\fP to look for RCS/srcdir/fred.c,v;
  484. which does not exist (assume that srcdir has its own RCS directory as is the
  485. common case).
  486. .PP
  487. A more versatile formulation of the above RCS check out rule is the following:
  488. .RS
  489. .sp
  490. % :  $$(@:d)RCS/$$(@:f),v : co $@
  491. .sp
  492. .RE
  493. This rule uses the dynamic macro $@ to specify the prerequisite to try to
  494. infer.  During inference of this rule the macro $@ is set to the value of
  495. the target of the %-meta rule and the appropriate prerequisite is generated by
  496. extracting the directory portion of the target name (if any), appending the
  497. string \fIRCS/\fP to it, and appending the target file name with a trailing
  498. \fI,v\fP attached to the previous result.
  499. .PP
  500. .B dmake
  501. can also infer indirect prerequisites.
  502. An inferred target can have a list of prerequisites added that will not
  503. show up in the value of $< but will show up in the value of $? and $&.
  504. Indirect prerequisites are specified in an inference rule by quoting the
  505. prerequisite with single quotes.  For example, if you had the explicit
  506. dependency:
  507. .RS
  508. .sp
  509. .nf
  510. fred.o : fred.c ; rule to make fred.o
  511. fred.o : local.h
  512. .fi
  513. .sp
  514. .RE
  515. then this can be inferred for fred.o from the following inference rule:
  516. .RS
  517. .sp
  518. %.o : %.c 'local.h' ; rule to make a .o from a .c
  519. .sp
  520. .RE
  521. You may infer indirect prerequisites that are a function of the value of '%'
  522. in the current rule.  The meta-rule:
  523. .RS
  524. .sp
  525. %.o : %.c '$(INC)/%.h' ; rule to make a .o from a .c
  526. .sp
  527. .RE
  528. infers an indirect prerequisite found in the INC directory whose name is the
  529. same as the expansion of $(INC), and the prerequisite name depends on the
  530. base name of the current target.
  531. The set of indirect prerequisites is attached to the meta rule in which they
  532. are specified and are inferred only if the rule is used to infer a recipe
  533. for a target.  They do not play an active role in driving the inference
  534. algorithm.
  535. The construct:
  536. .RS
  537. .sp
  538. %.o : %.c %.f 'local.h'; recipe
  539. .sp
  540. .RE
  541. is equivalent to:
  542. .RS
  543. .sp
  544. .nf
  545. %.o : %.c 'local.h' : recipe
  546. %.o : %.f 'local.h' : recipe
  547. .fi
  548. .sp
  549. .RE
  550. .PP
  551. If any of the attributes .SETDIR, .EPILOG, .PROLOG, .SILENT,
  552. \&.USESHELL, .SWAP, .PRECIOUS, .LIBRARY, .NOSTATE and .IGNORE
  553. are given for a %-rule then when that rule is bound to a target
  554. as the result of an inference, the target's set of attributes is augmented by
  555. the attributes from the above set that are specified in the bound %-rule.
  556. Other attributes specified for %-meta rules are not inherited by the target.
  557. The .SETDIR attribute is treated in a special way.
  558. If the target already had a .SETDIR attribute set then
  559. .B dmake
  560. changes to that directory prior to performing the inference.
  561. During inference any .SETDIR attributes for the inferred prerequisite
  562. are honored.
  563. The directories must exist for a %-meta rule to be selected as a possible
  564. inference path.  If the directories do not exist no error message is issued,
  565. instead the corresponding path in the inference graph is rejected.
  566. .PP
  567. .B dmake
  568. also supports the old format special target .<suffix>.<suffix>
  569. by identifying any rules
  570. of this form and mapping them to the appropriate %-rule.  So for example if
  571. an old makefile contains the construct:
  572. .RS
  573. .sp
  574. \&.c.o :; cc -c $< -o $@
  575. .sp
  576. .RE
  577. .B dmake
  578. maps this into the following %-rule:
  579. .RS
  580. .sp
  581. %.o : %.c; cc -c $< -o $@
  582. .sp
  583. .RE
  584. Furthermore,
  585. .B dmake
  586. understands several SYSV AUGMAKE special targets and maps them into
  587. corresponding %-meta rules.  These transformation must be enabled by providing
  588. the -A flag on the command line or by setting the value of AUGMAKE to
  589. non\-NULL.
  590. The construct
  591. .RS
  592. .sp
  593. \&.suff :; recipe
  594. .sp
  595. .RE
  596. gets mapped into:
  597. .RS
  598. .sp
  599. % : %.suff; recipe
  600. .sp
  601. .RE
  602. and the construct
  603. .RS
  604. .sp
  605. \&.c~.o :; recipe
  606. .sp
  607. .RE
  608. gets mapped into:
  609. .RS
  610. .sp
  611. %.o : s.%.c ; recipe
  612. .sp
  613. .RE
  614. In general, a special target of the form .<str>~ is replaced by the %-rule
  615. construct s.%.<str>, thereby providing support for the syntax used by SYSV
  616. AUGMAKE for providing SCCS support.
  617. When enabled, these mappings allow processing of existing SYSV
  618. makefiles without modifications.
  619. .PP
  620. .B dmake
  621. bases all of its inferences on the inference graph constructed from the
  622. %-rules defined in the makefile.
  623. It knows exactly which targets can be made from which prerequisites by
  624. making queries on the inference graph.  For this reason .SUFFIXES is not
  625. needed and is completely ignored.
  626. .PP
  627. For a %-meta rule to be inferred as the
  628. rule whose recipe will be used to make a target, the target's name must match
  629. the %-target pattern, and any inferred %-prerequisite must already exist or
  630. have an explicit recipe so that the prerequisite can be made.
  631. Without \fItransitive closure\fP on the inference graph the above rule
  632. describes precisely when an inference match terminates the search.
  633. If transitive closure is enabled (the usual case), and a prerequisite does
  634. not exist or cannot be made, then
  635. .B dmake
  636. invokes the inference algorithm recursively on the prerequisite to see if
  637. there is some way the prerequisite can be manufactured.  For, if the
  638. prerequisite can be made then the current target can also be made using the
  639. current %-meta rule.
  640. This means that there is no longer a need to give a rule
  641. for making a .o from a .y if you have already given a rule for making a .o
  642. from a .c and a .c from a .y.  In such cases
  643. .B dmake
  644. can infer how to make the
  645. \&.o from the .y via the intermediary .c and will remove the .c when the .o is
  646. made.  Transitive closure can be disabled by giving the -T switch on the
  647. command line.
  648. .PP
  649. A word of caution.
  650. .B dmake
  651. bases its transitive closure on the %-meta rule targets.
  652. When it performs transitive closure it infers how to make a target from a
  653. prerequisite by performing a pattern match as if the potential prerequisite
  654. were a new target.
  655. The set of rules:
  656. .RS
  657. .nf
  658. .sp
  659. %.o : %.c :; rule for making .o from .c
  660. %.c : %.y :; rule for making .c from .y
  661. % : RCS/%,v :; check out of RCS file
  662. .fi
  663. .sp
  664. .RE
  665. will, by performing transitive closure, allow \fBdmake\fP to infer how to make
  666. a .o from a .y using a .c as an intermediate temporary file.  Additionally
  667. it will be able to infer how to make a .y from an RCS file, as long as that
  668. RCS file is in the RCS directory and has a name which ends in .y,v.
  669. The transitivity computation is performed dynamically for each target that
  670. does not have a recipe.  This has potential to be costly if the %-meta
  671. rules are not carefully specified.  The .NOINFER attribute is used to mark
  672. a %-meta node as being a final target during inference.  Any node with this
  673. attribute set will not be used for subsequent inferences.  As an example
  674. the node RCS/%,v is marked as a final node since we know that if the RCS file
  675. does not exist there likely is no other way to make it.  Thus the standard
  676. startup makefile contains an entry similar to:
  677. .RS
  678. .nf
  679. \&.NOINFER : RCS/%,v
  680. .fi
  681. .RE
  682. Thereby indicating that the RCS file is the end of the inference chain.
  683. X
  684. Whenever the inference algorithm determines that a target can be made from
  685. more than one prerequisite and the inference chains for the two methods
  686. are the same length the algorithm reports an ambiguity and prints the
  687. ambiguous inference chains.
  688. .PP
  689. .B dmake
  690. tries to
  691. remove intermediate files resulting from transitive closure if the file
  692. is not marked as being PRECIOUS, or the \fB-u\fP flag was not given on the
  693. command line, and if the inferred intermediate did not previously exist.
  694. Intermediate targets that existed prior to being made are never removed.
  695. This is in keeping with the philosophy that
  696. .B dmake
  697. should never remove things from the file system that it did not add.
  698. If the special target .REMOVE is defined and has a recipe then
  699. .B dmake
  700. constructs a list of the intermediate files to be removed and makes them
  701. prerequisites of .REMOVE.  It then makes .REMOVE thereby removing the
  702. prerequisites if the recipe of .REMOVE says to.  Typically .REMOVE is defined
  703. in the startup file as:
  704. .sp
  705. \t.REMOVE :; $(RM) $<
  706. .SH "MAKING TARGETS"
  707. In order to update a target \fBdmake\fP must execute a recipe.
  708. When a recipe needs to be executed it is first expanded so that any macros
  709. in the recipe text are expanded, and it is then either executed directly or
  710. passed to a shell.
  711. .B dmake
  712. supports two types of recipes.  The regular recipes and group recipes.
  713. .PP
  714. When a regular recipe is invoked \fBdmake\fP executes each line of the recipe
  715. separately using a new copy of a shell if a shell is required.
  716. Thus effects of commands do not generally persist across recipe lines.
  717. (e.g. cd requests in a recipe line do not carry over to the next recipe line)
  718. The decision on whether a shell is required to execute a command is based on
  719. the value of the macro SHELLMETAS or on the specification of '+' or .USESHELL
  720. for the current recipe or target respectively.
  721. If any character in the value of
  722. SHELLMETAS is found in the expanded recipe text-line or the use of a shell
  723. is requested explicitly via '+' or .USESHELL then the command is
  724. executed using a shell, otherwise the command is executed directly.
  725. The shell that is used for execution is given by the value of the macro SHELL.
  726. The flags that are passed to the shell are given by the value of SHELLFLAGS.
  727. Thus \fBdmake\fP constructs the command line:
  728. .sp
  729. \t$(SHELL) $(SHELLFLAGS) $(expanded_recipe_command)
  730. .sp
  731. Normally
  732. .B dmake
  733. writes the command line that it is about to invoke to standard output.
  734. If the .SILENT attribute is set for the target or for
  735. the recipe line (via @), then the recipe line is not echoed.
  736. .PP
  737. Group recipe processing is similar to that of regular recipes, except that
  738. a shell is always invoked.  The shell that is invoked is given by the value of
  739. the macro GROUPSHELL, and its flags are taken from the value of the macro
  740. GROUPFLAGS.  If a target has the .PROLOG attribute set then
  741. .B dmake
  742. prepends to the shell script the recipe associated with the special target
  743. \&.GROUPPROLOG, and if the attribute .EPILOG is set as well, then the recipe
  744. associated with the special target .GROUPEPILOG is appended to the script
  745. file.
  746. This facility can be used to always prepend a common header and common trailer
  747. to group recipes.
  748. Group recipes are echoed to standard output just like standard recipes, but
  749. are enclosed by lines beginning with [ and ].
  750. .PP
  751. The recipe flags [+,-,%,@] are recognized at the start of a recipe line
  752. even if they appear in a macro.  For example:
  753. .RS
  754. .sp
  755. .nf
  756. SH = +
  757. all:
  758. \t$(SH)echo hi
  759. .fi
  760. .sp
  761. .RE
  762. is completely equivalent to writing
  763. .RS
  764. .sp
  765. .nf
  766. SH = +
  767. all:
  768. \t+echo hi
  769. .fi
  770. .sp
  771. .RE
  772. .PP
  773. The last step performed by
  774. .B dmake
  775. prior to running a recipe is to set the macro CMNDNAME to the name of the
  776. command to execute (determined by finding the first white\-space ending token
  777. in the command line).  It then sets the macro CMNDARGS to be the remainder
  778. of the line.
  779. .B dmake
  780. then expands the macro COMMAND which by default is set to
  781. .RS
  782. .sp
  783. COMMAND = $(CMNDNAME) $(CMNDARGS)
  784. .sp
  785. .RE
  786. The result of this final expansion is the command that will be executed.
  787. The reason for this expansion is to allow for a different interface to
  788. the argument passing facilities (esp. under DOS) than that provided by
  789. .B dmake\fR.\fP
  790. You can for example define COMMAND to be
  791. .RS
  792. .sp
  793. COMMAND = $(CMNDNAME) @$(mktmp $(CMNDARGS))
  794. .sp
  795. .RE
  796. which dumps the arguments into a temporary file and runs the command
  797. .RS
  798. .sp
  799. $(CMNDNAME) @/tmp/ASAD23043
  800. .sp
  801. .RE
  802. which has a much shorter argument list.  It is now up to the command to
  803. use the supplied argument as the source for all other arguments.
  804. As an optimization, if COMMAND is not defined
  805. .B dmake
  806. does not perform the above expansion.  On systems, such as UNIX, that
  807. handle long command lines this provides a slight saving in processing the
  808. makefiles.
  809. .SH "MAKING LIBRARIES"
  810. Libraries are easy to maintain using \fBdmake\fP.  A library is a file
  811. containing a collection of object files.
  812. Thus to make a library you simply specify it as a target with the .LIBRARY
  813. attribute set and specify its list of prerequisites.  The prerequisites should
  814. be the object members that are to go into the library.  When
  815. .B dmake
  816. makes the library target it uses the .LIBRARY attribute to pass to the
  817. prerequisites the .LIBMEMBER attribute and the name of the library.  This
  818. enables the file binding mechanism to look for the member in the library if an
  819. appropriate object file cannot be found. A small example best illustrates
  820. this.
  821. .RS
  822. .nf
  823. .sp
  824. mylib.a .LIBRARY : mem1.o mem2.o mem3.o
  825. \trules for making library...
  826. \t# remember to remove .o's when lib is made
  827. .sp
  828. # equivalent to:  '%.o : %.c ; ...'
  829. \&.c.o :; rules for making .o from .c say
  830. .sp
  831. .fi
  832. .RE
  833. .B dmake
  834. will use the .c.o rule for making the library members if appropriate .c files
  835. can be found using the search rules.  NOTE:  this is not specific in any way
  836. to C programs, they are simply used as an example.
  837. .PP
  838. .B dmake
  839. tries to handle the old library construct format in a sensible way.
  840. The construct 
  841. .I lib(member.o)
  842. is separated and the \fIlib\fP portion is declared
  843. as a library target.
  844. The new target is defined
  845. with the .LIBRARY attribute set and the \fImember.o\fP portion of the
  846. construct is
  847. declared as a prerequisite of the lib target.
  848. If the construct \fIlib(member.o)\fP
  849. appears as a prerequisite of a target in the
  850. makefile, that target has the new name of the lib assigned as its
  851. prerequisite.  Thus the following example:
  852. .RS
  853. .sp
  854. .nf
  855. a.out : ml.a(a.o) ml.a(b.o); $(CC) -o $@  $<
  856. X
  857. \&.c.o :; $(CC) -c $(CFLAGS) -o $@  $<
  858. %.a:
  859. \tar rv $@ $<
  860. \tranlib $@
  861. \trm -rf $<
  862. .sp
  863. .fi
  864. .RE
  865. constructs the following dependency
  866. graph.
  867. .RS
  868. .sp
  869. .nf
  870. a.out : ml.a; $(CC) -o $@  $<
  871. ml.a .LIBRARY : a.o b.o
  872. X
  873. %.o : %.c ; $(CC) -c $(CFLAGS) -o $@  $<
  874. %.a :
  875. \tar rv $@ $<
  876. \tranlib $@
  877. \trm -rf $<
  878. .sp
  879. .fi
  880. .RE
  881. and making a.out then works as expected.
  882. .PP
  883. The same thing happens for any target of the form \fIlib((entry))\fP.
  884. These targets have an
  885. additional feature in that the \fIentry\fP target has the .SYMBOL attribute
  886. set automatically.
  887. .PP
  888. NOTE:  If the notion of entry points is supported by the archive and by
  889. \fBdmake\fP (currently not the case) then
  890. .B dmake
  891. will search the archive for the entry point and return not only the
  892. modification time of the member which defines the entry but also the name of
  893. the member file.  This name will then replace \fIentry\fP and will be used for
  894. making the member file.  Once bound to an archive member the .SYMBOL
  895. attribute is removed from the target.
  896. This feature is presently disabled as there is little standardization
  897. among archive formats, and we have yet to find a makefile utilizing this
  898. feature (possibly due to the fact that it is unimplemented in most versions
  899. of UNIX Make).
  900. .PP
  901. Finally, when
  902. .B dmake
  903. looks for a library member it must first locate the library file.
  904. It does so by first looking for the library relative to the current directory
  905. and if it is not found it then looks relative to the current value of
  906. $(TMD).  This allows commonly used libraries to be kept near the root of
  907. a source tree and to be easily found by
  908. .B dmake\fR.\fP
  909. .SH "KEEP STATE"
  910. .B dmake
  911. supports the keeping of state information for targets that it makes whenever
  912. the macro .KEEP_STATE is assigned a value.  The value of the macro should be
  913. the name of a state file that will contain the state information.  If state
  914. keeping is enabled then each target that does not poses the .NOSTATE
  915. attribute will have a record written into the state file indicating the
  916. target's name, the current directory, the command used to update the target,
  917. and which, if any, :: rule is being used.  When you make this target again
  918. if any of this information does not match the previous settings and the
  919. target is not out dated it will still be re\-made.  The assumption is that one
  920. of the conditions above has changed and that we wish to remake the target.
  921. For example,
  922. state keeping is used in the maintenance of
  923. .B dmake
  924. to test compile different versions of the source using different compilers.
  925. Changing the compiler causes the compilation flags to be modified and hence
  926. all sources to be recompiled.
  927. .PP
  928. The state file is an ascii file and is portable, however it is
  929. not in human readable form as the entries represent hash keys of the above
  930. information.
  931. .PP
  932. The Sun Microsystem's Make construct
  933. .RS
  934. .sp
  935. \&.KEEP_STATE :
  936. .sp
  937. .RE
  938. is recognized and is mapped to \fB.KEEP_STATE:=_state.mk\fP.
  939. The
  940. .B dmake
  941. version of state keeping does not include scanning C source files for
  942. dependencies like Sun Make.  This is specific to C programs and it was
  943. felt that it does not belong in make.
  944. .B dmake
  945. instead provides the tool, \fBcdepend\fP, to scan C source files and to produce
  946. depedency information.  Users are free to modify cdepend to produce other
  947. dependency files.  (NOTE:
  948. .B cdepend
  949. does not come with the distribution at this time, but will be available in
  950. a patch in the near future)
  951. .SH "MULTI PROCESSING"
  952. If the architecture supports it then \fBdmake\fP is capable of making a target's
  953. prerequisites in parallel.  \fBdmake\fP will make as much in parallel as it
  954. can and use a number of child processes up to the maximum specified by
  955. MAXPROCESS or by the value supplied to the -P command line flag.
  956. A parallel make is enabled by setting the value of MAXPROCESS (either directly
  957. or via -P option) to a value which is > 1.
  958. \fBdmake\fP guarantees that all dependencies as specified in the makefile are
  959. honored.  A target will not be made until all of its prerequisites have been
  960. made.
  961. If a parallel make is being performed then the following restrictions on
  962. parallelism are enforced.
  963. .RS
  964. .IP 1.
  965. Individual recipe lines in a non-group recipe are performed sequentially in
  966. the order in which they are specified within the makefile and in parallel with
  967. the recipes of other targets.
  968. .IP 2.
  969. If a target contains multiple recipe definitions (cf. :: rules) then these are
  970. performed sequentially in the order in which the :: rules are specified within
  971. the makefile and in parallel with the recipes of other targets.
  972. .IP 3.
  973. If a target rule contains the `!' modifier, then the recipe is performed
  974. sequentially for the list of outdated prerequisites and in parallel with the recipes of other targets.
  975. .IP 4.
  976. If a target has the .SEQUENTIAL attribute set then all of its prerequisites
  977. are made sequentially relative to one another (as if MAXPROCESS=1), but in
  978. parallel with other targets in the makefile.
  979. .RE
  980. .PP
  981. Note:  If you specify a parallel make then
  982. the order of target update and the order in which the associated recipes are
  983. invoked will not correspond to that displayed by the -n flag.
  984. .SH "CONDITIONALS"
  985. .B dmake
  986. supports a makefile construct called a \fIconditional\fR.  It allows
  987. the user
  988. to conditionally select portions of makefile text for input processing
  989. and to discard other portions.  This becomes useful for
  990. writing makefiles that are intended to function for more than one target
  991. host and environment.  The conditional expression is specified as follows:
  992. .sp
  993. .RS
  994. .nf
  995. \&.IF  \fIexpression\fR
  996. X   ... if text ...
  997. \&.ELIF  \fIexpression\fR
  998. X   ... if text ...
  999. \&.ELSE
  1000. X   ... else text ...
  1001. \&.END
  1002. .RE
  1003. .fi
  1004. .sp
  1005. The .ELSE and .ELIF portions are optional, and the conditionals may be
  1006. nested (ie.  the text may contain another conditional).
  1007. \&.IF, .ELSE, and .END
  1008. may appear anywhere in the makefile, but a single conditional expression
  1009. may not span multiple makefiles.
  1010. .PP
  1011. \fIexpression\fR can be one of the following three forms:
  1012. .sp
  1013. \t<text> | <text> == <text> | <text> != <text>
  1014. .sp
  1015. where \fItext\fR is either text or a macro expression.  In any case,
  1016. before the comparison is made, the expression is expanded.  The text
  1017. portions are then selected and compared.  White space at the start and
  1018. end of the text portion is discarded before the comparison.  This means
  1019. that a macro that evaluates to nothing but white space is considered a
  1020. NULL value for the purpose of the comparison.
  1021. In the first case the expression evaluates TRUE if the text is not NULL
  1022. otherwise it evaluates FALSE.  The remaining two cases both evaluate the
  1023. expression on the basis of a string comparison.
  1024. If a macro expression needs to be equated to a NULL string then compare it to
  1025. the value of the macro $(NULL).
  1026. You can use the $(shell ...) macro to construct more complex test expressions.
  1027. .SH "EXAMPLES"
  1028. .RS
  1029. .nf
  1030. .sp
  1031. # A simple example showing how to use make
  1032. #
  1033. prgm : a.o b.o
  1034. X    cc a.o b.o -o prgm
  1035. a.o : a.c g.h
  1036. X    cc a.c -o $@
  1037. b.o : b.c g.h
  1038. X    cc b.c -o $@
  1039. .fi
  1040. .RE
  1041. .sp
  1042. In the previous
  1043. example prgm is remade only if a.o and/or b.o is out of date with
  1044. respect to prgm.
  1045. These dependencies can be stated more concisely
  1046. by using the inference rules defined in the standard startup file.
  1047. The default rule for making .o's from .c's looks something like this:
  1048. .sp
  1049. \&\t%.o : %.c; cc -c $(CFLAGS) -o $@ $<
  1050. .sp
  1051. Since there exists a rule (defined in the startup file)
  1052. for making .o's from .c's
  1053. \fBdmake\fR will use that rule
  1054. for manufacturing a .o from a .c and we can specify our dependencies
  1055. more concisely.
  1056. .sp
  1057. .RS
  1058. .nf
  1059. prgm : a.o b.o
  1060. X    cc -o prgm $<
  1061. a.o b.o : g.h
  1062. .fi
  1063. .RE
  1064. .sp
  1065. A more general way to say the above using the new macro expansions
  1066. would be:
  1067. .sp
  1068. .RS
  1069. .nf
  1070. SRC = a b
  1071. OBJ = {$(SRC)}.o
  1072. .sp
  1073. prgm : $(OBJ)
  1074. X    cc -o $@ $<
  1075. .sp
  1076. $(OBJ) : g.h
  1077. .fi
  1078. .RE
  1079. .sp
  1080. If we want to keep the objects in a separate directory, called
  1081. objdir, then we would write
  1082. something like this.
  1083. .sp
  1084. .RS
  1085. .nf
  1086. SRC = a b
  1087. OBJ = {$(SRC)}.o
  1088. .sp
  1089. prgm : $(OBJ)
  1090. X    cc $< -o $@
  1091. .sp
  1092. $(OBJ) : g.h
  1093. \&%.o : %.c
  1094. X    $(CC) -c $(CFLAGS) -o $(@:f) $<
  1095. X    mv $(@:f) objdir
  1096. X
  1097. \&.SOURCE.o : objdir        # tell make to look here for .o's
  1098. .fi
  1099. .RE
  1100. .sp
  1101. An example of building library members would go something like this:
  1102. (NOTE:  The same rules as above will be used to produce .o's from .c's)
  1103. .sp
  1104. .RS
  1105. .nf
  1106. SRC\t= a b
  1107. LIB\t= lib
  1108. LIBm\t= { $(SRC) }.o
  1109. .sp
  1110. prgm: $(LIB)
  1111. X    cc -o $@ $(LIB)
  1112. .sp
  1113. $(LIB) .LIBRARY : $(LIBm)
  1114. X    ar rv $@ $<
  1115. X    rm $<
  1116. .fi
  1117. .RE
  1118. .sp
  1119. Finally, suppose that each of the source files in the previous example had
  1120. the `:' character in their target name.  Then we would write the above example
  1121. as:
  1122. .sp
  1123. .RS
  1124. .nf
  1125. SRC\t= f:a f:b
  1126. LIB\t= lib
  1127. LIBm\t= "{ $(SRC) }.o"        # put quotes around each token
  1128. .sp
  1129. prgm: $(LIB)
  1130. X    cc -o $@ $(LIB)
  1131. .sp
  1132. $(LIB) .LIBRARY : $(LIBm)
  1133. X    ar rv $@ $<
  1134. X    rm $<
  1135. .fi
  1136. .RE
  1137. .SH "COMPATIBILITY"
  1138. There are two notable differences between 
  1139. .B \fBdmake\fR
  1140. and the standard version of BSD UNIX 4.2/4.3 Make.
  1141. .RS
  1142. .IP 1. .3i
  1143. BSD UNIX 4.2/4.3 Make supports wild card filename expansion for
  1144. prerequisite names.  Thus if a directory contains a.h, b.h and c.h, then a
  1145. line like
  1146. .sp
  1147. \ttarget: *.h
  1148. .sp
  1149. will cause UNIX make to expand the *.h into "a.h b.h c.h".  \fBdmake\fR
  1150. does not support this type of filename expansion.
  1151. .IP 2. .3i
  1152. Unlike UNIX make, touching a library member causes \fBdmake\fR
  1153. to search the library for the member name and to update the library time stamp.
  1154. This is only implemented in the UNIX version.
  1155. MSDOS and other versions may not have librarians that keep file time stamps,
  1156. as a result \fBdmake\fR touches the library file itself, and prints a warning.
  1157. .RE
  1158. .PP
  1159. \fBdmake\fP is not compatible with GNU Make.  In particular it does not
  1160. understand GNU Make's macro expansions that query the file system.
  1161. .PP
  1162. .B dmake
  1163. is fully compatible with SYSV AUGMAKE, and supports the following AUGMAKE
  1164. features:
  1165. .RS
  1166. .IP 1. .3i
  1167. The word \fBinclude\fP appearing at the start of a line can be used instead of
  1168. the ".INCLUDE :" construct understood by \fBdmake\fP.
  1169. .IP 2. .3i
  1170. The macro modifier expression $(macro:str=sub) is understood and is equivalent
  1171. to the expression $(macro:s/str/sub), with the restriction that str must match
  1172. the following regular expression:
  1173. .sp
  1174. \tstr[ |\\t][ |\\t]*
  1175. .sp
  1176. (ie. str only matches at the end of a token where str is a suffix and is
  1177. terminated by a space, a tab, or end of line)
  1178. .IP 3.
  1179. The macro % is defined to be $@ (ie. $% expands to the same value as $@).
  1180. .IP 4.
  1181. The AUGMAKE notion of libraries is handled correctly.
  1182. .IP 5.
  1183. When defining special targets for the inference rules and the AUGMAKE special
  1184. target handling is enabled then the special target
  1185. \&.X is equivalent to the %-rule "% : %.X".
  1186. .IP 6.
  1187. Directories are always made if you specify \fB-A\fP.  This is consistent
  1188. with other UNIX versions of Make.
  1189. .IP 7.
  1190. Makefiles that utilize virtual targets to force making of other targets work
  1191. SHAR_EOF
  1192. true || echo 'restore of dmake/man/dmake.tf failed'
  1193. fi
  1194. echo 'End of part 20, continue with part 21'
  1195. echo 21 > _shar_seq_.tmp
  1196. exit 0
  1197.  
  1198. exit 0 # Just in case...
  1199. -- 
  1200. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  1201. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  1202. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  1203. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  1204.